package com.zenith.common.constant;

/**
 * 通用常量
 */
public class CommonConstant {
    /**
     * 成功标记
     */
    public static final Integer SUCCESS = 200;

    /**
     * 失败标记
     */
    public static final Integer FAIL = 500;

    /**
     * 未授权
     */
    public static final Integer UNAUTHORIZED = 401;

    /**
     * 禁止访问
     */
    public static final Integer FORBIDDEN = 403;

    /**
     * 请求头中的token名称
     */
    public static final String TOKEN_HEADER = "Authorization";

    /**
     * JWT令牌前缀
     */
    public static final String TOKEN_PREFIX = "Bearer ";

    /**
     * 用户ID字段
     */
    public static final String USER_ID = "userId";

    /**
     * 用户名字段
     */
    public static final String USERNAME = "username";

    /**
     * 用户角色字段
     */
    public static final String USER_ROLE = "role";

}